-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove callbacks from job_queue_node #6118
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6118 +/- ##
==========================================
- Coverage 82.48% 82.46% -0.03%
==========================================
Files 350 350
Lines 21442 21434 -8
Branches 834 834
==========================================
- Hits 17687 17675 -12
- Misses 3457 3461 +4
Partials 298 298
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🌮
a865268
to
bc2f62f
Compare
@@ -194,10 +194,12 @@ def run_done_callback(self) -> Optional[LoadStatus]: | |||
|
|||
def run_timeout_callback(self) -> None: | |||
if self.callback_timeout: | |||
self.callback_timeout(*self.callback_arguments) | |||
self.callback_timeout(self.run_arg.iens) | |||
|
|||
def run_exit_callback(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we avoid the string "callback" altogether?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just a first pass. we will do more cleanup in later PRs
f1ddbbb
to
e2a30e1
Compare
Removed callbacks and split callback_arguments into run_arg and ensemble_config. Updated tests. Inlined exit callback into job_queue_node.
e2a30e1
to
ef63ac0
Compare
Approach
job queue node now calls forward_model_ok directly instead of getting it as a callback.
Split callback_arguments into run_arg and ensemble_config.
Updated tests.
Inlined exit callback into job_queue_node.
Pre review checklist
Ground Rules),
and changes to existing code have good test coverage.
Pre merge checklist